﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ImoviesBlazorAntPro.Shared.Entities
{
    public class AnnualReview
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public uint Id { get; set; }

        [Required]
        public uint Year { get; set; }

        [Required]
        public string Comment { get; set; }

        [Required]
        [Range(1, 3)]
        public uint VideoCate { get; set; }

        public AnnualReview()
        {
        }

        public AnnualReview(uint id, uint year, string comment)
        {
            this.Id = id;
            this.Year = year;
            this.Comment = comment;
        }
    }
}
